<?php
/*
 * action : InitCache
 * param: 
 * return: 
 */

include_once("httpclient.php");
include_once('config.php');
$url_prefix = Config::$url_prefix;

$action = "InitCache";

$param = array();
$param['venue'] = 1;
$param['announcement'] = 1;
$param['goods'] = 1;
$param['gift'] = 1;
$param['award'] = 1;
//$param['venuecontent'] = 1;
//$param['levelinfo'] = 1;
$param['marquee'] = 1;
$param['cointasklist'] = 1;
$param['pass'] = "zjhcache";
$param['all'] = 1;
$query = array();

$query['action'] = $action;
$query['ver'] = Config::$ver;
$query['param'] = json_encode($param);

$url = $url_prefix . http_build_query($query);
//exit($url);
echo $url;


echo '</br>';

echo urldecode('http://127.0.0.1/zjhapi/api.php?action=InitCache&ver=1.5.1¶m=%7B%22venue%22%3A1%2C%22announcement%22%3A1%2C%22goods%22%3A1%2C%22gift%22%3A1%2C%22award%22%3A1%2C%22marquee%22%3A1%2C%22cointasklist%22%3A1%2C%22pass%22%3A%22zjhcache%22%2C%22all%22%3A1%7D');
$client = new HttpClient();
echo "<pre />";
echo $client->get($url);
?>
